package com.soonzlab.englishlearning.client;

import java.util.ArrayList;

import com.google.gwt.user.client.rpc.AsyncCallback;
import com.soonzlab.englishlearning.client.obj.ArticleObj;

/**
 * The async counterpart of <code>GreetingService</code>.
 */
public interface GreetingServiceAsync {
	void greetServer(String input, AsyncCallback<String> callback)throws IllegalArgumentException;
	void getNewArticle(AsyncCallback<ArrayList<ArticleObj>> callback)throws IllegalArgumentException;
	void getTranslate(String article, String language, AsyncCallback<String> callback)throws IllegalArgumentException;
	void getLoginUser(AsyncCallback<String> callback)throws IllegalArgumentException;
	void saveToCalendar(String word, String vocabulary, AsyncCallback<String> callback)throws IllegalArgumentException;
	void logout(AsyncCallback<Void> callback)throws IllegalArgumentException;
}
